/**
 * @file bsp_error.h
 * @brief BSP层驱动错误码定义
 * @author wangh (wanghuan3037@fiberhome.com)
 * @version 1.0
 * @date 2020-12-02
 * @copyright Copyright (c) 2020  烽火通信
 */
#ifndef __BSP_ERROR_H
#define __BSP_ERROR_H 

#define BSP_ERROR_BASE_NUM      (0x0)       ///< 错误码基数


#define BSP_SUCCESS                             (BSP_ERROR_BASE_NUM)        ///< 成功
#define BSP_ERROR                               (BSP_ERROR_BASE_NUM - 1)    ///< 错误
#define BSP_ERROR_INVALID_PARAM                 (BSP_ERROR_BASE_NUM - 2)    ///< 非法入参
#define BSP_ERROR_INVALID_LENGTH                (BSP_ERROR_BASE_NUM - 3)    ///< 非法长度
#define BSP_ERROR_NOT_SUPPORTED                 (BSP_ERROR_BASE_NUM - 4)    ///< 参数不支持
#define BSP_ERROR_NO_INIT                       (BSP_ERROR_BASE_NUM - 5)    ///< 没有初始化
#define BSP_ERROR_ALREADY_INIT                  (BSP_ERROR_BASE_NUM - 5)    ///< 已经初始化
#define BSP_ERROR_NO_MEM                        (BSP_ERROR_BASE_NUM - 6)    ///< 内存不够
#define BSP_ERROR_TIMEOUT                       (BSP_ERROR_BASE_NUM - 7)    ///< 操作超时
#define BSP_ERROR_CHECK                         (BSP_ERROR_BASE_NUM - 8)    ///< 校验出错
#define BSP_ERROR_IAP                           (BSP_ERROR_BASE_NUM - 9)    ///< IAP出错


#endif	 // __BSP_ERROR_H 

/*********** (C) COPYRIGHT 2020 FiberHome *****END OF FILE****/
